<template>
  <rx-dialog @handOk="handleSubmit" @cancel="cancel">
    <a-form :form="form">
      <a-form-item style="display:none">
        <a-input v-decorator="['id']"/>
      </a-form-item>	  
			  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="i18n('form.logType','日志类型')">
					<a-input :placeholder="i18n('form.logType','日志类型')" v-decorator="['type', {rules: [{required: false, message:i18n('form.logType','日志类型','input')}]}]"/>
			  </a-form-item>
			  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="i18n('form.sqlDetails','SQL详情')">
                    <a-textarea :placeholder="i18n('form.sqlDetails','SQL详情')" v-decorator="['sql', {rules: [{required: false, message: i18n('form.sqlDetails','SQL详情','input')}]}]" :rows="4" />
			  </a-form-item>
			  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="i18n('form.executionRemarks','执行备注')">
                    <a-textarea :placeholder="i18n('form.executionRemarks','执行备注')" v-decorator="['remark', {rules: [{required: false, message: i18n('form.executionRemarks','执行备注','input')}]}]" :rows="4" />
			  </a-form-item>
			  <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="i18n('form.successOrNot','是否成功')">
					<a-input :placeholder="i18n('form.successOrNot','是否成功')" v-decorator="['isSuccess', {rules: [{required: false, message:i18n('form.successOrNot','是否成功','input')}]}]"/>
			  </a-form-item>
    </a-form>
  </rx-dialog>
</template>
<script>
  import FormSqlLogApi from '@/api/form/core/formSqlLog'
  import {BaseForm,RxDialog} from "@lowcode/jpaas-common-lib";
  export default {
    name: 'FormSqlLogEdit',
    mixins:[BaseForm],
    components: {
      RxDialog,
    },
    methods: {
        i18n(name, text, key) {
            return this.$ti18(name, text, "formSqlLog", key);
        },
      get(id){
        return FormSqlLogApi.get(id);
      },
      save(values){
        return FormSqlLogApi.save(values);
      }

    }
  }
</script>
